package com.example.demo.controller;


import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 
 * @since 2021-12-03
 */
@Controller
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/test")
    public String test(@DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate startDate){
        System.out.println(startDate);
        return "ok";
    }

}
